<!DOCTYPE html>
<html>
<head>
	<style type="text/css">
        #tblHeader {
            background-image:url(image/ohelShelomoEng4.PNG);
            background-repeat: no-repeat;
			background-size:cover;
			//margin-right: 5px;
            //margin-left: 15px;
			
			margin-top: 0;
            margin-right: 55px;
            margin-bottom: 0;
            margin-left: 75px;
            padding-bottom: 20px;
            z-index: 1;
        }
        #tblMain {
            margin-top: 0;
            margin-right: 50px;
            margin-bottom: 0;
            margin-left: 50px;
            padding-bottom: 20px;
            z-index: 1;
        }
    </style>
</head>

<body>

<table width=90% height=20% border="0" id="tblHeader">
    
    <tr>
        
        <td width=70% height="166" rowspan="3">
        <a href="index.php" title="Home page">
            <div style="width:100%; height:164px;"> </div>   
        </a>    
        </td>
    
        <td width="368" id="tdLogin"style="width:315px; height:138px;">
            <?php
                function logout(){
                    session_start();
                    
                    // Unset all of the session variables.
                    $_SESSION = array();
                    
                    // Finally, destroy the session.
                    if (!session_destroy())
                            die("Error destroying session!");
                    //redirctes to the main site page		
                    header("Location: index.php?s=0");
                    
                }
                
                if (isset($_GET['logout']) && $_GET['logout'] == 'yes')
                        logout(); 
                    
                if(isset($_SESSION['username'])) 
                    require(dirname(__FILE__).'/login/success_form.php');
                else
                    require(dirname(__FILE__).'/login/login_box_form.php');
                    
            ?>
        </td> 
       
  </tr>
    
</table>    
</body>

</html>

